/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package battle.ship.model;

import java.util.ArrayList;
import java.util.List;
import java.util.Random;

/**
 *
 * @author Carlos
 */
public class ShipTwoBarrel extends Ship {

    public ShipTwoBarrel(){
        this.size = 2;
        this.points = new ArrayList<>(this.size);
    }
    
    public ShipTwoBarrel(List<Point> points){
        super(points);
    }
   
    @Override
    public String getName() {
        return this.getClass().getSimpleName();
    }
    
    public List<Point> createPoint(Point point){   
        this.points.add(0, point);
        for (int i = 1; i <= this.size; i++) {
            if(this.oriention==ShipOrientation.V){
                tempPoint.setY((point.getY()+i));
            }
            else{
                tempPoint.setX((point.getX()+i));
            }
            this.points.add(i, point);
        }
        return points;
    }
    
    public ShipTwoBarrel(int boardSize){
        super(boardSize);
    }
}
